package com.xlh.service.cases;

import com.xlh.dto.PageDTO;
import com.xlh.dto.cases.*;
import com.xlh.enums.cases.JudgeEnum;
import com.xlh.param.cases.BusinessParam;
import com.xlh.param.cases.CreateCaseLibraryParam;
import com.xlh.param.cases.UpdateBusinessParam;
import com.xlh.param.cases.UpdateCaseLibraryParam;
import com.xlh.pojo.cases.Star;

import java.util.List;

/**
 * 行业案例
 * <p>
 * Created by lx on 2019/1/28.
 */
public interface BusinessCaseService {

    List<BusinessDTO> listBusiness();

    void createBusiness(BusinessParam createParam);

    void updateBusiness(UpdateBusinessParam updateParam);

    void delBusinessCase(Long businessId);

    List<CaseLibraryDTO> listCase(Long businessId);

    void createCaseLibrary(CreateCaseLibraryParam createParam);

    void updateCaseLibrary(UpdateCaseLibraryParam updateParam);

    CaseLibraryDetailDTO getCase(Long id);

    void deleteCase(List<Long> caseIds);

    List<CasePicDTO> changePic(List<String> base64List);

    void clickStar(JudgeEnum judgeEnum, Long caseId);

    List<Star> getStarInfoById(Long caseId);

    PageDTO<StarRankDTO> starRankList(Integer pageNum, Integer pageSize, Integer orderStatus);

}
